<%--
  Created by IntelliJ IDEA.
  User: leovo
  Date: 2018/6/11
  Time: 22:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<% request.setCharacterEncoding("UTF-8");%>
<html>
<head>
    <title>用户信息编辑</title>
    <script type="text/javascript">
        function validataForm() {
            var  x=document.forms["form"]["username"].value;
            var y=document.forms["form"]["password"].value;
            if (x==null||x==""){
                alert("用户名不能为空！")；
                return false;
            }
            if (y== null||y==""){
                alert("密码不能空着！")；
                return false;
            }

        }
    </script>
</head>
<body>

<form method="post" action="userUpdate.jsp" name="form"
      onsubmit="return validataForm()">
    <input type="text" hidden="hidden" name="id" id="id"
    value="<%=request.getParameter("id")%>>"><br/>
    用户名：<input type="text" name="username" id="username"
value="<%=request.getParameter("username")%>>"><ba/>
    密码：<input type="text" name="password" id="password"
value="<%=request.getParameter("password")%>>"><br/>
    <button type="submit">确认编辑</button>
</form>

</body>
</html>
